export default class PageInfo{
	
	constructor(arg) {
		this._pageIndex = 1
		this._pageSize = 20
		this._total = 0
		this._loadedTotal = 0
	}
	
	nextPage(){
		this._pageIndex++
	}
	
	reset(){
		this._pageIndex = 1
		this._loadedTotal = 0
		this._total = 0
	}
	
	get pageIndex(){
		return this._pageIndex
	}
	
	get pageSize(){
		return this._pageSize
	}
	
	get total(){
		return this._total
	}
	
	set total(total){
		this._total = total
	}
	
	get loadedTotal(){
		return this._loadedTotal
	}
	
	set loadedTotal(loadedTotal){
		this._loadedTotal = loadedTotal
	}
	
	get isNotLoadAll(){
		return this._loadedTotal < this._total
	}
	
	
}
